package com.czxy.demo25;

public class Test01 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> aClass = Class.forName("com.czxy.demo01.Apple");

        FruitName annotation =(FruitName) aClass.getAnnotation(FruitName.class);
        String value = annotation.value();


        System.out.println(value);
    }
}
